Arithmetic Operation
Q21.
Find the output of the following Java code line System.out.printIn(math.floor(-7.4))Q22.
Consider the following C code. #include < stdio.h > #include < math.h > void main () { double pi = 3.1415926535; int a = 1; int i; for (i=0; i < 3; i++) if (a = cos(pi * i/2)) printf("% d", 1); else printf("%d", 0); } What would the program print?